Delete Folder
AutomatR.DefaultActivities.FileAndFolder.DeleteFolder
The "Delete Folder" activity in AutomatR facilitates the deletion of a specified folder from a designated location. This activity streamlines the process of removing folders within automation workflows, providing efficient folder management capabilities.
Properties
Name | Description |
---|---|
Input | |
Folder Path | Provide the full path of the folder on your local system that you would like to delete. Example: "D:\Folder\DeleteFolder" . String variables containing the folder path. |
Include Subfolder | If checked, it enables you to delete all the subfolders from the specified folder. Boolean variables or arguments. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Delete Folder" activity. This can be useful for handling synchronization issues. Integer variables or arguments containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
How to use:
- Drag and drop the "Delete Folder" activity onto the workflow.
- Configure the properties by specifying the full path of the folder to be deleted and whether to include subfolders.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to delete the specified folder.
Example: Consider an example where the "Delete Folder" activity is used to remove a folder named "DeleteFolder" from the "D:\Folder\" directory, including its subfolders:
Delete Folder:
Display Name: "Delete Main Folder"
Folder Path: "D:\Folder\DeleteFolder"
Include Subfolder: True
In this example, the activity deletes the "DeleteFolder" folder and its subfolders from the specified directory. If the folder does not exist, an exception is raised. Adjust the folder path and inclusion of subfolders as needed for your workflow.